#ifndef _Menu_h
#define _Menu_h

#include "zf_common_headfile.h"
#include "zf_common_typedef.h"

#define menu_clear       tft180_clear
#define draw_point       tft180_draw_point
#define show_char        tft180_show_char
#define show_str         tft180_show_string
#define show_uint32      tft180_show_uint
#define show_int32       tft180_show_int
#define show_float       tft180_show_float

#define MENU_GRID           16  //ips grid size
#define GPS_GRID        0.0000011



extern char Go;
// extern double inf_lat[200], inf_lon[200];
extern float lat, lon, dir;

extern int16 Menu_PaperFlag, Menu_IndexFlag, Menu_AddFlag, Menu_Paper, Menu_ReduFlag, Menu_Location;
extern float target_direction, target_distance, target_next_dis, target_next_dir, target_last_dis; 
extern float Servo_PWM;
extern float time_i , time_j, time_k;

void DisplayMenu(void);     // Menu page summary processing
void DisplayMenu_0(void);   // Menu page 0 is displayed
void DisplayMenu_1(void);   // Menu page 1 is displayed
void DisplayMenu_2(void);   // Menu page 2 is displayed
void DisplayMenu_3(void);   // Menu page 3 is displayed
void Key_Judge(void);		// Menu key decision
void ring(int ms);          // ring ring ring 

#endif
